package one.stand.service.impl;

import one.stand.mapper.GoodsMapperExt;
import one.stand.service.GoodsPhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cjr
 */
@Service
public class GoodsPhotoServiceImpl implements GoodsPhotoService {
    @Autowired
    private GoodsMapperExt goodsMapperExt;

    @Override
    public String getPath(Integer goodsId) {
        return goodsMapperExt.selectPhoto(goodsId);
    }

    @Override
    public List<String> getListPath(Integer goodsId) {
        return goodsMapperExt.selectList(goodsId);
    }
}
